{include file="Public:header2"/}
<body style="min-height: 100%;background-color: #fff">
<div style="padding: 0 20px;position: relative;z-index: 99;border-bottom: 1px solid #e5e5e5;line-height: 39px;height: 39px;overflow: hidden;">
      <span style="visibility: visible;">
        <a href="{:url('/admin/base')}" style="padding-right: 8px;line-height: 22px;font-size: 14px;color: #333!important;">系统设置<span class="layui-box">&gt;</span></a>
        <a href="javascript:;"> <cite>网站设置</cite></a>
      </span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <form onsubmit="return false;">
                        <div class="layui-form" wid100 lay-filter="">
                            <div class="layui-form-item">
                                <label class="layui-form-label">第一天</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="one_num" value="{$data.one_num}" min="1" lay-verify="required" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">第二天</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="two_num" value="{$data.two_num}" min="1" lay-verify="required" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">第三天</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="three_num" value="{$data.three_num}" min="1" lay-verify="required" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">第四天</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="four_num" value="{$data.four_num}" min="1" lay-verify="required" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">第五天</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="five_num" value="{$data.five_num}" min="1" lay-verify="required" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">第六天</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="six_num" value="{$data.six_num}" min="1" lay-verify="required" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">第七天</label>
                                <div class="layui-input-inline">
                                    <input type="text" name="seven_num" value="{$data.seven_num}" min="1" lay-verify="required" class="layui-input">
                                </div>
                            </div>
                            
                            <input type="hidden" name="key" value="{$key}">

                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" onclick="return check()">确认保存</button>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="Public:footer"/}
</body>
</html>
<script type="text/javascript">
    layui.use(['layer','form','upload','element'], function(){
        var $ = layui.$;
    })
        
    function check(){
        var url="{:url('/admin/update')}";
        var $ = layui.$;
        var load=layer.load(2);
        $.post(url,$("form").serialize(),function(data){
            if(data.status==1){
                layer.msg(data.msg,{icon:1,time:1000},function(){
                    location.reload();
                });
            }else{
                layer.msg(data.msg,{icon:2,anim:6,time:1500},function(){
                    layer.close(load);
                });
            }
        })
    }
</script>